#include "CTestPrivate.h"

class CTestImplement :public CTestPrivate
{
public:
	CTestImplement() = default;
	~CTestImplement() = default;
	virtual int def_add(int a, int b);
	virtual int def_sub(int c, int d);
	virtual void ReleaseObj();
};

CTestPrivate* __stdcall GetObject()
{
	return new CTestImplement();
}

int CTestImplement::def_add(int a, int b)
{
	return a + b;
}

int CTestImplement::def_sub(int c, int d)
{
	return c - d;
}

void CTestImplement::ReleaseObj()
{
	delete this;
}
